﻿using System;
using System.Collections.Generic;
using System.Text;
using MyLib;

namespace ProcessControl.Logic
{
    public class CommonLogic
    {
        public int GetTaskStatusBySql(string strTaskid)
        {
            try
            {
                string strSql = "select t.status from v_tasks t where t.taskid ='" + strTaskid + "'";
                return Convert.ToInt32(DataAccess.Instance("BizDB").ExecuteScalar(strSql));

            }
            catch (Exception ex)
            {
                return 0;
                throw ex;

            }
        }
    }
}
